[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
INTEGER VARIABLE
An integer variable is defined in the form
int <varname>;
where <varname> is the name to be given to the variable. An al-
ternate definition is
int <varname1>, <varname2>, ..., <varnameN>;
which allows you to define more than one integer variable in one
statement. An original value can be assigned to the integer variable
by using the form
int <varname> = <int_const>;
where <int_const> is an integer constant. Similarly, an original
value can be assigned in the multiple definition above by placing
the assignment before the comma. Some examples are:
int maximum;
int start = 0;
int level, i, count = 20, loop;
See Also:
variables
string variable
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson